<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="zh">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.11.0"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>cppMISC: wheels::dm::singleton&lt; typeName &gt; 模板类 参考</title>
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../jquery.js"></script>
<script type="text/javascript" src="../../dynsections.js"></script>
<script type="text/javascript" src="../../clipboard.js"></script>
<link href="../../navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../resize.js"></script>
<script type="text/javascript" src="../../cookie.js"></script>
<link href="../../search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../search/searchdata.js"></script>
<script type="text/javascript" src="../../search/search.js"></script>
<script type="text/javascript" src="../../darkmode_toggle.js"></script>
<link href="../../doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectalign">
   <div id="projectname">cppMISC<span id="projectnumber">&#160;v1.1</span>
   </div>
   <div id="projectbrief">cppMisc 文档系统</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.11.0 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "../../search/",'.html');
/* @license-end */
</script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() { codefold.init(1); });
/* @license-end */
</script>
<script type="text/javascript" src="../../menudata.js"></script>
<script type="text/javascript" src="../../menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('../../',true,false,'search.php','搜索',false);
  $(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function(){ initResizable(false); });
/* @license-end */
</script>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">载入中...</div>
<div class="SRStatus" id="Searching">搜索中...</div>
<div class="SRStatus" id="NoMatches">未找到</div>
</div>
</div>
</div>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="../../df/d8d/namespacewheels.html">wheels</a></li><li class="navelem"><a class="el" href="../../d8/d2d/namespacewheels_1_1dm.html">dm</a></li><li class="navelem"><a class="el" href="../../de/d44/classwheels_1_1dm_1_1singleton.html">singleton</a></li>  </ul>
</div>
</div><!-- top -->
<div id="doc-content">
<div class="header">
  <div class="summary">
<a href="#pub-types">Public 类型</a> &#124;
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="#pub-static-methods">静态 Public 成员函数</a> &#124;
<a href="#pro-methods">Protected 成员函数</a> &#124;
<a href="#pro-static-attribs">静态 Protected 属性</a> &#124;
<a href="../../df/d6a/classwheels_1_1dm_1_1singleton-members.html">所有成员列表</a>  </div>
  <div class="headertitle"><div class="title">wheels::dm::singleton&lt; typeName &gt; 模板类 参考</div></div>
</div><!--header-->
<div class="contents">

<p><code>#include &lt;<a class="el" href="../../de/d6d/singleton_8hpp_source.html">singleton.hpp</a>&gt;</code></p>
<div class="dynheader">
类 wheels::dm::singleton&lt; typeName &gt; 继承关系图:</div>
<div class="dyncontent">
<div class="center"><img src="../../d3/d2e/classwheels_1_1dm_1_1singleton__inherit__graph.png" border="0" usemap="#awheels_1_1dm_1_1singleton_3_01type_name_01_4_inherit__map" alt="Inheritance graph"/></div>
<map name="awheels_1_1dm_1_1singleton_3_01type_name_01_4_inherit__map" id="awheels_1_1dm_1_1singleton_3_01type_name_01_4_inherit__map">
<area shape="rect" title=" " alt="" coords="498,5,666,331"/>
<area shape="rect" href="../../de/d44/classwheels_1_1dm_1_1singleton.html" title=" " alt="" coords="31,395,199,720"/>
<area shape="poly" title=" " alt="" coords="486,214,420,248,349,290,278,340,213,397,201,410,197,406,209,393,275,336,346,286,418,243,483,210"/>
<area shape="rect" href="../../de/d44/classwheels_1_1dm_1_1singleton.html" title=" " alt="" coords="223,395,391,720"/>
<area shape="poly" title=" " alt="" coords="491,282,406,396,393,414,389,411,401,393,487,279"/>
<area shape="rect" href="../../de/d44/classwheels_1_1dm_1_1singleton.html" title=" " alt="" coords="415,395,583,720"/>
<area shape="poly" title=" " alt="" coords="542,346,540,355,532,395,527,394,535,354,537,345"/>
<area shape="rect" href="../../de/d44/classwheels_1_1dm_1_1singleton.html" title=" " alt="" coords="607,395,775,720"/>
<area shape="poly" title=" " alt="" coords="648,344,651,354,662,394,657,396,646,355,643,346"/>
<area shape="rect" href="../../de/d44/classwheels_1_1dm_1_1singleton.html" title=" " alt="" coords="799,395,967,720"/>
<area shape="poly" title=" " alt="" coords="678,262,735,325,789,393,802,410,797,413,785,396,731,329,674,266"/>
<area shape="rect" href="../../de/d44/classwheels_1_1dm_1_1singleton.html" title=" " alt="" coords="999,395,1173,720"/>
<area shape="poly" title=" " alt="" coords="681,207,752,240,830,283,909,334,981,393,1001,414,998,418,978,397,906,338,827,287,749,245,679,211"/>
<area shape="rect" href="../../d1/d0f/classlooper.html" title="libuv 事件循环控制器。所有的libuv事件循环都应该依赖于这个模块。如果硬件设备是多核的 可以把这个模块设计成多个线程循环的模块。否则应该是一个循环线程" alt="" coords="5,921,199,1204"/>
<area shape="poly" title=" " alt="" coords="113,735,108,922,103,921,108,735"/>
<area shape="rect" href="../../da/da4/classssl_epoll_egn.html" title="ssl服务器EPOLL引擎" alt="" coords="223,956,415,1169"/>
<area shape="poly" title=" " alt="" coords="314,735,319,956,314,956,309,735"/>
<area shape="rect" href="../../de/dd8/classwebsocket_svr.html" title="websocket服务器。用来方便后端和前端的实时通讯" alt="" coords="451,1028,547,1097"/>
<area shape="poly" title=" " alt="" coords="502,735,502,1028,497,1028,497,735"/>
<area shape="rect" href="../../d5/d99/classwheels_1_1backtrace.html" title=" " alt="" coords="622,988,761,1137"/>
<area shape="poly" title=" " alt="" coords="694,735,694,988,689,988,689,735"/>
<area shape="rect" href="../../d5/d36/classwheels_1_1buff.html" title=" " alt="" coords="801,871,955,1255"/>
<area shape="poly" title=" " alt="" coords="884,735,883,871,877,871,879,735"/>
<area shape="rect" href="../../dd/d08/classwheels_1_1dm_1_1dispatcher.html" title=" " alt="" coords="979,769,1201,1356"/>
<area shape="poly" title=" " alt="" coords="1090,735,1090,769,1085,769,1085,735"/>
</map>
</div>
<div class="dynheader">
wheels::dm::singleton&lt; typeName &gt; 的协作图:</div>
<div class="dyncontent">
<div class="center"><img src="../../d5/d30/classwheels_1_1dm_1_1singleton__coll__graph.png" border="0" usemap="#awheels_1_1dm_1_1singleton_3_01type_name_01_4_coll__map" alt="Collaboration graph"/></div>
<map name="awheels_1_1dm_1_1singleton_3_01type_name_01_4_coll__map" id="awheels_1_1dm_1_1singleton_3_01type_name_01_4_coll__map">
<area shape="rect" title=" " alt="" coords="5,5,173,331"/>
</map>
</div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-types" name="pub-types"></a>
Public 类型</h2></td></tr>
<tr class="memitem:a49cbde8528bcf4e2daa32e6b09e9039c" id="r_a49cbde8528bcf4e2daa32e6b09e9039c"><td class="memItemLeft" align="right" valign="top">using&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a49cbde8528bcf4e2daa32e6b09e9039c">T</a> = typename std::enable_if&lt; std::is_class&lt; typeName &gt;::value , typeName &gt;::type</td></tr>
<tr class="separator:a49cbde8528bcf4e2daa32e6b09e9039c"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-methods" name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:ae71c401e1f6a3fdd97ed39b821025952" id="r_ae71c401e1f6a3fdd97ed39b821025952"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#ae71c401e1f6a3fdd97ed39b821025952">singleton</a> (const <a class="el" href="../../de/d44/classwheels_1_1dm_1_1singleton.html">singleton</a> &amp;)=delete</td></tr>
<tr class="separator:ae71c401e1f6a3fdd97ed39b821025952"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a00d55bdcea0b0896937c58ab2b9cb9a3" id="r_a00d55bdcea0b0896937c58ab2b9cb9a3"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a00d55bdcea0b0896937c58ab2b9cb9a3">singleton</a> (<a class="el" href="../../de/d44/classwheels_1_1dm_1_1singleton.html">singleton</a> &amp;&amp;)=delete</td></tr>
<tr class="separator:a00d55bdcea0b0896937c58ab2b9cb9a3"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-static-methods" name="pub-static-methods"></a>
静态 Public 成员函数</h2></td></tr>
<tr class="memitem:ab0f35771c8d539c732b6a4e40bcedeaf" id="r_ab0f35771c8d539c732b6a4e40bcedeaf"><td class="memTemplParams" colspan="2">template&lt;typename ... Args&gt; </td></tr>
<tr class="memitem:ab0f35771c8d539c732b6a4e40bcedeaf"><td class="memTemplItemLeft" align="right" valign="top">static <a class="el" href="#a49cbde8528bcf4e2daa32e6b09e9039c">T</a> *&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="#ab0f35771c8d539c732b6a4e40bcedeaf">create</a> (Args &amp;&amp;... args)</td></tr>
<tr class="memdesc:ab0f35771c8d539c732b6a4e40bcedeaf"><td class="mdescLeft">&#160;</td><td class="mdescRight">工厂函数，用来创建单例对象  <br /></td></tr>
<tr class="separator:ab0f35771c8d539c732b6a4e40bcedeaf"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aff26d3af3d193f057a15cb6d25c5062c" id="r_aff26d3af3d193f057a15cb6d25c5062c"><td class="memTemplParams" colspan="2">template&lt;typename ... Args&gt; </td></tr>
<tr class="memitem:aff26d3af3d193f057a15cb6d25c5062c"><td class="memTemplItemLeft" align="right" valign="top">static std::shared_ptr&lt; <a class="el" href="#a49cbde8528bcf4e2daa32e6b09e9039c">T</a> &gt;&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="#aff26d3af3d193f057a15cb6d25c5062c">create_shared</a> (Args &amp;&amp;... args)</td></tr>
<tr class="separator:aff26d3af3d193f057a15cb6d25c5062c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab064e1d47abf923e4ae0deaac875c173" id="r_ab064e1d47abf923e4ae0deaac875c173"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="#a49cbde8528bcf4e2daa32e6b09e9039c">T</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#ab064e1d47abf923e4ae0deaac875c173">get</a> ()</td></tr>
<tr class="memdesc:ab064e1d47abf923e4ae0deaac875c173"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取当前的模块对象指针  <br /></td></tr>
<tr class="separator:ab064e1d47abf923e4ae0deaac875c173"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4c95860231735ce03395968f726d0246" id="r_a4c95860231735ce03395968f726d0246"><td class="memItemLeft" align="right" valign="top">static std::shared_ptr&lt; <a class="el" href="#a49cbde8528bcf4e2daa32e6b09e9039c">T</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a4c95860231735ce03395968f726d0246">get_shared</a> ()</td></tr>
<tr class="separator:a4c95860231735ce03395968f726d0246"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pro-methods" name="pro-methods"></a>
Protected 成员函数</h2></td></tr>
<tr class="memitem:a486422f98733581c4462792f61c41fcf" id="r_a486422f98733581c4462792f61c41fcf"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a486422f98733581c4462792f61c41fcf">singleton</a> ()</td></tr>
<tr class="memdesc:a486422f98733581c4462792f61c41fcf"><td class="mdescLeft">&#160;</td><td class="mdescRight">避免直接调用构造函数  <br /></td></tr>
<tr class="separator:a486422f98733581c4462792f61c41fcf"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pro-static-attribs" name="pro-static-attribs"></a>
静态 Protected 属性</h2></td></tr>
<tr class="memitem:a068f4f3064ec965938e0d99d2b890be7" id="r_a068f4f3064ec965938e0d99d2b890be7"><td class="memItemLeft" align="right" valign="top">static std::shared_ptr&lt; <a class="el" href="#a49cbde8528bcf4e2daa32e6b09e9039c">T</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a068f4f3064ec965938e0d99d2b890be7">pt_obj__</a></td></tr>
<tr class="separator:a068f4f3064ec965938e0d99d2b890be7"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><div class="compoundTemplParams">template&lt;typename typeName&gt;<br />
class wheels::dm::singleton&lt; typeName &gt;</div>
<p class="definition">在文件 <a class="el" href="../../de/d6d/singleton_8hpp_source.html">singleton.hpp</a> 第 <a class="el" href="../../de/d6d/singleton_8hpp_source.html#l00019">19</a> 行定义.</p>
</div><h2 class="groupheader">成员类型定义说明</h2>
<a id="a49cbde8528bcf4e2daa32e6b09e9039c" name="a49cbde8528bcf4e2daa32e6b09e9039c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a49cbde8528bcf4e2daa32e6b09e9039c">&#9670;&#160;</a></span>T</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename typeName &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">using <a class="el" href="../../de/d44/classwheels_1_1dm_1_1singleton.html">wheels::dm::singleton</a>&lt; typeName &gt;::T = typename std::enable_if&lt; std::is_class&lt; typeName &gt;::value , typeName &gt;::type</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="../../de/d6d/singleton_8hpp_source.html">singleton.hpp</a> 第 <a class="el" href="../../de/d6d/singleton_8hpp_source.html#l00022">22</a> 行定义.</p>

</div>
</div>
<h2 class="groupheader">构造及析构函数说明</h2>
<a id="a486422f98733581c4462792f61c41fcf" name="a486422f98733581c4462792f61c41fcf"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a486422f98733581c4462792f61c41fcf">&#9670;&#160;</a></span>singleton() <span class="overload">[1/3]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename typeName &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../de/d44/classwheels_1_1dm_1_1singleton.html">wheels::dm::singleton</a>&lt; typeName &gt;::singleton </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"><em></em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>避免直接调用构造函数 </p>

<p class="definition">在文件 <a class="el" href="../../de/d6d/singleton_8hpp_source.html">singleton.hpp</a> 第 <a class="el" href="../../de/d6d/singleton_8hpp_source.html#l00027">27</a> 行定义.</p>

</div>
</div>
<a id="ae71c401e1f6a3fdd97ed39b821025952" name="ae71c401e1f6a3fdd97ed39b821025952"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae71c401e1f6a3fdd97ed39b821025952">&#9670;&#160;</a></span>singleton() <span class="overload">[2/3]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename typeName &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../de/d44/classwheels_1_1dm_1_1singleton.html">wheels::dm::singleton</a>&lt; typeName &gt;::singleton </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="../../de/d44/classwheels_1_1dm_1_1singleton.html">singleton</a>&lt; typeName &gt; &amp;</td>          <td class="paramname"><span class="paramname"><em></em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">delete</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="a00d55bdcea0b0896937c58ab2b9cb9a3" name="a00d55bdcea0b0896937c58ab2b9cb9a3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a00d55bdcea0b0896937c58ab2b9cb9a3">&#9670;&#160;</a></span>singleton() <span class="overload">[3/3]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename typeName &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../de/d44/classwheels_1_1dm_1_1singleton.html">wheels::dm::singleton</a>&lt; typeName &gt;::singleton </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../de/d44/classwheels_1_1dm_1_1singleton.html">singleton</a>&lt; typeName &gt; &amp;&amp;</td>          <td class="paramname"><span class="paramname"><em></em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">delete</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<h2 class="groupheader">成员函数说明</h2>
<a id="ab0f35771c8d539c732b6a4e40bcedeaf" name="ab0f35771c8d539c732b6a4e40bcedeaf"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab0f35771c8d539c732b6a4e40bcedeaf">&#9670;&#160;</a></span>create()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename typeName &gt; </div>
<div class="memtemplate">
template&lt;typename ... Args&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="#a49cbde8528bcf4e2daa32e6b09e9039c">T</a> * <a class="el" href="../../de/d44/classwheels_1_1dm_1_1singleton.html">wheels::dm::singleton</a>&lt; typeName &gt;::create </td>
          <td>(</td>
          <td class="paramtype">Args &amp;&amp;...</td>          <td class="paramname"><span class="paramname"><em>args</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>工厂函数，用来创建单例对象 </p>
<dl class="section return"><dt>返回</dt><dd>c </dd></dl>

<p class="definition">在文件 <a class="el" href="../../de/d6d/singleton_8hpp_source.html">singleton.hpp</a> 第 <a class="el" href="../../de/d6d/singleton_8hpp_source.html#l00036">36</a> 行定义.</p>

</div>
</div>
<a id="aff26d3af3d193f057a15cb6d25c5062c" name="aff26d3af3d193f057a15cb6d25c5062c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aff26d3af3d193f057a15cb6d25c5062c">&#9670;&#160;</a></span>create_shared()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename typeName &gt; </div>
<div class="memtemplate">
template&lt;typename ... Args&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static std::shared_ptr&lt; <a class="el" href="#a49cbde8528bcf4e2daa32e6b09e9039c">T</a> &gt; <a class="el" href="../../de/d44/classwheels_1_1dm_1_1singleton.html">wheels::dm::singleton</a>&lt; typeName &gt;::create_shared </td>
          <td>(</td>
          <td class="paramtype">Args &amp;&amp;...</td>          <td class="paramname"><span class="paramname"><em>args</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="../../de/d6d/singleton_8hpp_source.html">singleton.hpp</a> 第 <a class="el" href="../../de/d6d/singleton_8hpp_source.html#l00047">47</a> 行定义.</p>

</div>
</div>
<a id="ab064e1d47abf923e4ae0deaac875c173" name="ab064e1d47abf923e4ae0deaac875c173"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab064e1d47abf923e4ae0deaac875c173">&#9670;&#160;</a></span>get()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename typeName &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="#a49cbde8528bcf4e2daa32e6b09e9039c">T</a> * <a class="el" href="../../de/d44/classwheels_1_1dm_1_1singleton.html">wheels::dm::singleton</a>&lt; typeName &gt;::get </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"><em></em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>获取当前的模块对象指针 </p>
<dl class="section return"><dt>返回</dt><dd>返回指针，如果模块没有初始化返回时nullptr </dd></dl>

<p class="definition">在文件 <a class="el" href="../../de/d6d/singleton_8hpp_source.html">singleton.hpp</a> 第 <a class="el" href="../../de/d6d/singleton_8hpp_source.html#l00059">59</a> 行定义.</p>
<div class="dynheader">
这是这个函数的调用关系图:</div>
<div class="dyncontent">
<div class="center"><img src="../../de/d44/classwheels_1_1dm_1_1singleton_ab064e1d47abf923e4ae0deaac875c173_icgraph.png" border="0" usemap="#ade/d44/classwheels_1_1dm_1_1singleton_ab064e1d47abf923e4ae0deaac875c173_icgraph" alt=""/></div>
<map name="ade/d44/classwheels_1_1dm_1_1singleton_ab064e1d47abf923e4ae0deaac875c173_icgraph" id="ade/d44/classwheels_1_1dm_1_1singleton_ab064e1d47abf923e4ae0deaac875c173_icgraph">
<area shape="rect" title="获取当前的模块对象指针" alt="" coords="467,189,641,216"/>
<area shape="rect" href="../../d0/db2/class_c_u_v_u_d_p_client.html#ab9e61439fdd13324385227b5464407fa" title="构造客户端对象" alt="" coords="206,5,419,32"/>
<area shape="poly" title=" " alt="" coords="536,178,489,111,456,76,418,46,394,35,396,30,420,42,459,72,493,107,540,174"/>
<area shape="rect" href="../../d5/dc5/classwheels_1_1dm_1_1main_loop.html#af67c6172369e74aaac16a2c48aefd0f8" title="启动主循环" alt="" coords="236,56,388,99"/>
<area shape="poly" title=" " alt="" coords="523,181,475,147,418,113,388,101,390,96,420,108,478,142,526,177"/>
<area shape="rect" href="../../d5/dc5/classwheels_1_1dm_1_1main_loop.html#a8025b2e6a55dabe0c078184584c275a0" title="获取调度器" alt="" coords="236,123,388,165"/>
<area shape="poly" title=" " alt="" coords="481,188,388,165,390,160,482,183"/>
<area shape="rect" href="../../df/dbb/classwheels_1_1ini_read.html#a09aa97ad021b44af9fde585bd7700dd6" title=" " alt="" coords="229,189,396,216"/>
<area shape="poly" title=" " alt="" coords="451,205,396,205,396,200,451,200"/>
<area shape="rect" href="../../da/d29/classtcp_connection.html#ab9df806825b991c30f046275148678b1" title="处理连接请求。接受连接后发出连接成功通知，通知参数提供新的连接对象指针" alt="" coords="214,240,410,267"/>
<area shape="poly" title=" " alt="" coords="472,222,380,242,379,237,471,217"/>
<area shape="rect" href="../../da/d35/classudp.html#a82110e55d4388bc5503a0c5fce70988d" title=" " alt="" coords="246,291,379,317"/>
<area shape="poly" title=" " alt="" coords="522,227,475,255,420,281,380,294,378,289,418,276,472,250,519,222"/>
<area shape="rect" href="../../d5/dc5/classwheels_1_1dm_1_1main_loop.html#a27eb964c8b61f18d5f40acff97240fdd" title="停止运行" alt="" coords="236,341,388,384"/>
<area shape="poly" title=" " alt="" coords="534,230,485,281,454,308,420,332,390,346,388,341,418,327,451,304,482,277,530,227"/>
<area shape="rect" href="../../d5/dc5/classwheels_1_1dm_1_1main_loop.html#a1a9308820a029e0b8617fdd2c2ec31cc" title=" " alt="" coords="5,341,158,384"/>
<area shape="poly" title=" " alt="" coords="221,365,158,365,158,360,221,360"/>
</map>
</div>

</div>
</div>
<a id="a4c95860231735ce03395968f726d0246" name="a4c95860231735ce03395968f726d0246"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4c95860231735ce03395968f726d0246">&#9670;&#160;</a></span>get_shared()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename typeName &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static std::shared_ptr&lt; <a class="el" href="#a49cbde8528bcf4e2daa32e6b09e9039c">T</a> &gt; <a class="el" href="../../de/d44/classwheels_1_1dm_1_1singleton.html">wheels::dm::singleton</a>&lt; typeName &gt;::get_shared </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"><em></em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="../../de/d6d/singleton_8hpp_source.html">singleton.hpp</a> 第 <a class="el" href="../../de/d6d/singleton_8hpp_source.html#l00063">63</a> 行定义.</p>

</div>
</div>
<h2 class="groupheader">类成员变量说明</h2>
<a id="a068f4f3064ec965938e0d99d2b890be7" name="a068f4f3064ec965938e0d99d2b890be7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a068f4f3064ec965938e0d99d2b890be7">&#9670;&#160;</a></span>pt_obj__</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename typeName &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">std::shared_ptr&lt; <a class="el" href="#a49cbde8528bcf4e2daa32e6b09e9039c">T</a> &gt; <a class="el" href="../../de/d44/classwheels_1_1dm_1_1singleton.html">wheels::dm::singleton</a>&lt; typeName &gt;::pt_obj__</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="../../de/d6d/singleton_8hpp_source.html">singleton.hpp</a> 第 <a class="el" href="../../de/d6d/singleton_8hpp_source.html#l00024">24</a> 行定义.</p>

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>include/designM/<a class="el" href="../../de/d6d/singleton_8hpp_source.html">singleton.hpp</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="../../doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.11.0
</small></address>
</div><!-- doc-content -->
</body>
</html>
